home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: A question on for loop
- Date: Fri, 15 Mar 96 23:56:50 GMT
- Organization: none
- Message-ID: <826934210snz@genesis.demon.co.uk>
- References: <4i77ca$161@ccshst05.cs.uoguelph.ca> <1996Mar14.041132.26035@zcon.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!genesis.demon.co.uk
-
- In article <1996Mar14.041132.26035@zcon.com>
- szh@zcon.com "Syed Zaeem Hosain" writes:
-
- > i = 0;
- > while ( i < 20 )
- > {
- > [some code here]
- > ...
- >
- > ++i; /* Can be i++ without any difference */
- > }
- >
- >The ++i can be i++ without any difference *in this case shown* since
- >you are not relying on the side effect of the assignment.
-
- Or rather you are relying on the side effect only and not the value of the
- expression.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-